//
//  WelcomeView.m
//  XRmenu-HD
//
//  Created by shengchao yang on 11-12-31.
//  Copyright (c) 2011年 home user. All rights reserved.
//

#import "WelcomeView.h"

@implementation WelcomeView
-(id) initWithStyle:(NSString *)stylename ViewName:(NSString *)vname
{
    self = [super initWithStyle:stylename ViewName:vname]; 
    if (self) {        
    }
    return self;
}

#pragma mark 重载button处理方法
-(void) buttonClicked:(id)sender
{
    if (APPSESSION.isAnimating) {
        DebugLog(@"动画还未结束...");
        return;
    }
    
    DebugLog(@"进入推荐菜界面");
    NSInteger bid = [sender tag];
    APPSESSION.isViewRemoveFromLef=YES;
    if(bid == (kTagOfStartBT + 0)){         //中文
        APPSESSION.language = @"zh-Hans";
    }
    else if(bid == (kTagOfStartBT + 1)){    //英文
        APPSESSION.language = @"en";
    }
    else{                                   //默认中文
        APPSESSION.language = @"zh-Hans";
    }
    [APPSESSION playSoundOnEvent:[XRmenuPublic getGeneralSkinImg:@"buttonClicked.caf"]];
    NSDictionary *infos1 = [NSDictionary dictionaryWithObjectsAndKeys:num(ViewOfCommend), @"Step", nil];
    postNWithInfos(kMessage_RootView_ChangeStep, self, infos1);
}
//=========================================================== 
// dealloc
//=========================================================== 
- (void)dealloc
{
    [super dealloc];
}
@end
